package com.wn.ziroom;

import com.wn.utils.SnowFlowUtils;
import org.springframework.beans.factory.annotation.Autowired;

import java.text.SimpleDateFormat;
import java.util.Date;

public class text {

    public static void main(String[] args) {

        long time = new Date().getTime();
        time+= 8 *31536000000L;
        Date date = new Date();
        date.setTime(time);
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
        String format = formatter.format(date);
        System.out.println(format);

        long l = SnowFlowUtils.getInstance().nextId();
        System.out.println("雪花算法:"+l);
    }
}
